package com.ffms.service.impl;

import com.ffms.dao.FamilyMemberDao;
import com.ffms.dao.ShouruDao;
import com.ffms.dao.impl.FamilyMemberDaoImpl;
import com.ffms.dao.impl.ShouruDaoImpl;
import com.ffms.entity.FamilyMember;
import com.ffms.entity.Shouru;
import com.ffms.service.FamilyMemberService;

import java.util.List;

/**
 * @author 从卿
 * @create 2022/3/7-17:10
 */
public class FamilyMemberServiceImpl implements FamilyMemberService {
    private FamilyMemberDao familyMemberDao=new FamilyMemberDaoImpl();
    private  ShouruDao shouruDao=new ShouruDaoImpl();
    @Override
    public FamilyMember login(String name, String pwd) {
        return  this.familyMemberDao.findfm(name,pwd);

    }
    @Override
    public FamilyMember loginByName(String userid) {
        return  this.familyMemberDao.findfmByName(userid);
    }

    @Override
    public FamilyMember loginBypwd(String password) {
        return  this.familyMemberDao.findfmByPwd(password);
    }




}

